package com.company.project.controller;

import com.company.project.common.utils.DataResult;
import com.company.project.entity.DorisSku;
import com.company.project.entity.DorisSkuReq;
import com.company.project.service.DorisService;
import com.company.project.service.HomeService;
import com.company.project.service.HttpSessionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import oracle.jdbc.proxy.annotation.Post;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;


/**
 * 首页
 *
 * @author wenbin
 * @version V1.0
 * @date 2020年3月18日
 */
@RestController
@RequestMapping("/doris")
@Api(tags = "首页数据")
public class DorisController {
    @Resource
    private DorisService dorisService;

    @PostMapping("/goods/sku")
    @ApiOperation(value = "获取首页数据接口")
    public DataResult getSku(@RequestBody DorisSkuReq skuReq) {
        List<DorisSku> dorisSkuList =  dorisService.getSku(skuReq);
        return DataResult.success(dorisSkuList);
    }
}
